◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱ Thank you to Stack Overflow for providing the forum and hosting the nugget below: Thank you to Stack Overflow author/user user2683246 for sharing this nugget: Nugget protected under "Creative Commons Attribution-ShareAlike 3.0 Unported", included in "Stack Overflow/Creative Commons Attribution-ShareAlike 3.0 Unported" folder var args = Array.prototype.concat.apply([null], arguments); return new (Function.prototype.bind.apply(Date, args)); Author/User https://stackoverflow.com/users/2683246/user2683246 Question https://stackoverflow.com/questions/11408722/javascript-pass-arguments-to-object-constructor Attribution based on requirements set here: https://stackoverflow.blog/2009/06/25/attribution-required/ Attributed: May 13, 2019 ◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱◲◰◳◱